package com.chulianyuang.service;

import com.chulianyuang.pojo.ClaimVoucher;
import com.chulianyuang.pojo.ClaimVoucherDetail;

import java.util.List;

public interface ClaimVoucherService {
    /**
     *查询报销单
     * @param claimVoucher
     * @return
     */
    List<ClaimVoucher> selectClaimVoucherBySn( ClaimVoucher claimVoucher);

    /**
     * 添加报销单
     * @param cdv
     * @return
     */
    boolean addClaimVoucher(ClaimVoucher cdv);

    /**
     * 根据ID查询所有相关表
     * @param id
     * @return
     */
    ClaimVoucher selectClaimVoucherById( int id);

    /**
     * 根据id删除表信息
     * @param id
     * @return
     */
    boolean deleteClaimVoucherById(int id);

    boolean updateClaimVoucherById(ClaimVoucher cdv);

    /**
     * 用户更新操作
     * @param claimVoucher
     * @return
     */
    boolean updateClaimVoucher(ClaimVoucher claimVoucher);
}
